package com.t3rik.mes.emp.domain;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.t3rik.common.annotation.Excel;
import com.t3rik.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* 员工计件工资详情对象 emp_piece_salary_details
*
* @author ykh
* @date 2025-02-19
*/
@EqualsAndHashCode(callSuper = false)
@TableName(value = "emp_piece_salary_details")
@Data
public class EmpPieceSalaryDetails extends BaseEntity
{
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;


    /** 报工人id */
    @Excel(name = "报工人id", sort = 2)
    private Long userId;


    /** 报工用户名 */
    @Excel(name = "报工用户名", sort = 3)
    private String userName;


    /** 审批人id */
    private Long recordUserId;


    /** 审批人名称 */
    @Excel(name = "审批人名称")
    private String recordNick;


    /** 报工记录id */
    private Long feedbackId;


    /** 工序ID */
    private Long processId;


    /** 工序单价 */
    @Excel(name = "工序单价")
    private BigDecimal price;


    /** 奖励系数 */
    @Excel(name = "奖励系数")
    private BigDecimal percent;


    /** 生产任务ID */
    private Long taskId;


    /** 本次报工数量 */
    @Excel(name = "本次报工数量")
    private BigDecimal feedbackCount;


    /** 本次报工计件金额 */
    @Excel(name = "本次报工计件金额")
    private BigDecimal countPrice;


    /** 本次报工总金额 */
    @Excel(name = "本次报工总金额")
    private BigDecimal totalPrice;


    /** 逻辑删除字段 0:未删除 1:已删除 */
    private Long deleted;


    /** 逻辑删除辅助字段 */
    private Date deleteAt;


    /** 修改人id */
    private Long updateUserId;


    /** 创建人id */
    private Long createUserId;
}
